package ndky2;

public class MyClassTest {

    private String name;

    public void  setName(String name){
        this.name = name;
    }

    public String getName(){
        return name;
    }
    public static void  main(String[] args){
        MyClassTest myClassTest = new MyClassTest();
        myClassTest.setName("Cham_Lu");
        System.out.println(myClassTest.name);
        System.out.println(myClassTest.getName());
    }



}
//5、输出：Cham_Lu
//类中的this
//6、封装
//输出：Cham_Lu